<?php
class XmlViewer extends ContentFile
{
	const S_XML2HTML_XSL_PATH = "../xsl/xml2html.xsl";
	
	/**
	 * @param ServerResponse $oResponse
	 * @param String $sAbsolutePath
	 */
	public function readContent( $oResponse, $sAbsolutePath )
	{		
		require_once( 'io.php' );
		$sData = FileManager::xml2html( $oResponse, $sAbsolutePath, self::S_XML2HTML_XSL_PATH );
		
		$oResponse->data( $sData );
		
		$oResponse->requestExecuted();
	}
}
?>